#include<iostream>
#include<cstring>
#include<string>
#include<cmath>
using namespace std;
bool Prime(int n)
{
	if (n == 0 || n == 1) {
		return 0;
	}
	for (int i = 2; i * i <= sqrt(n); i++) {
		if (!(n % i)) {
			return 0;
		}
	}
	return 1;
}
int main()
{
	string s;
	getline(cin, s);
	int ma = -100;
	int mi = 1000;
	/*for (int i = 0; i < s.size() - 1; i++) {
		int count = 1;
		for (int j = i + 1; j < s.size(); j++) {
			if (s[i] == s[j]) {
				count++;
			}
		}
		if (count < mi) {
			mi = count;
		}
		if (count > ma) {
			ma = count;
		}
	}*/
	int flag[1000] = { 0 };
	int arr[1010] = { 0 };
	for (int i = 0; i < s.size(); i++) {
		arr[s[i]]++;
		flag[s[i]] = 1;
	}
	for (int i = 0; i < 1000; i++) {
		if (arr[i] > ma && flag[i] == 1) {
			ma = arr[i];
		}
		if (arr[i] < mi && flag[i] == 1) {
			mi = arr[i];
		}
	}
	int ans = ma - mi;
	if (Prime(ans)) {
		cout << "Lucky Word" << endl;
		cout << ans << endl;
	}
	else {
		cout << "No Answer" << endl;
		cout << 0 << endl;
	}
	return 0;
}